package com.guxing.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class UserConfig {

    // 当前服务下的配置文件
    @Value("${user.id}")
    private Integer id;

    @Value("${user.name}")
    private String name;
}
